/*
 * Created on May 20, 2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package org.pyant.tasks;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.ExecuteStreamHandler;
import org.apache.tools.ant.types.Commandline;

/**
 * @author Ron Smith
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class PythonInteractiveBaseTask extends PythonBaseTask {

	//	Script to be run in interactive mode
	 protected String script = null;
	 
	protected ExecuteStreamHandler createStreamHandler() {
		TaskExecuteStreamHandler streamHandler = new TaskExecuteStreamHandler(this, Project.MSG_INFO,
					Project.MSG_WARN, script);
		return streamHandler;
	}

	protected void addCommandlineArgs(Commandline cmdline)
	{
		super.addCommandlineArgs(cmdline);
		
		cmdline.createArgument().setValue("-");	
	}

}
